





<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>依申请公开回复列表</title>
        <link rel="stylesheet" type="text/css" href="static/css/easyui.css">
        <link rel="stylesheet" type="text/css" href="static/css/icon.css">
        <script type="text/javascript" src="static/js/jquery.min.js"></script>
        <script type="text/javascript" src="static/js/jquery.easyui.min.js"></script>
        <script type="text/javascript" src="static/js/easyui-lang-zh_CN.js"></script>
        <script type="text/javascript" src="static/js/common.js"></script>
        <script type="text/javascript" src="static/js/jquery.query.js"></script>
        <link rel="stylesheet" type="text/css" href="static/css/content.css">
        <link rel="stylesheet" type="text/css" href="static/css/applypublic.css">
        <link rel="stylesheet" type="text/css" href="https://i.gench.edu.cn/_upload/tpl/01/b6/438/template438/css/custom/apply_ysqgk_tab.css">
        <script>
            var queryId = "";
            $().ready(function() {
                initMsgBoard();
                fetchApplyPublicContent(1);
                $('#search').click(function() {
                    fetchApplyPublicContent(1);
                });
            });
            /**
             * 加载留言列表
             */
            function fetchApplyPublicContent(pageIndex) {
                $.ajax({
                    type: "post",
                    url: 'fetchApplyPublicForRepyList.do?_p=YXM9NTcmdD00MzgmZD0xNTk2JnA9MiZmPTUxOTkmbT1TTiZ8Ym5uQ29sdW1uVmlydHVhbE5hbWU9c2hqcXh5eHhna21sLSY_',
                    data: {
                        page: pageIndex,
                        rows: 10
                    },
                    dataType: 'JSON',
                    success: function(result) {
                        $('#wp_guestbook_pagination_p').html(result.pagination);
                        $('#applyPublic_num').html(result.total);
                        // 遍历留言内容
                        var data = '';
                        for (var i = 0; i < result.rows.length; i++) {
                            var row = result.rows[i];
                            data += '<li class="list_item" id="applyPublic_' + row.id + '">';
                            data += '<div class="icon"><div class="icon_box"></div></div>';
                            data += '<span class="applyPublic_item applyPublic_time">' + row.applicants + ',' + row.replyContent + '</span>';
                            data += '</div>';
                            data += '</li>';
                        }
                        $('#applyPublic_list').html(data);
                        initMoreContent();
                    }
                });
            }
            var applyPublicBoard = {};
            var replyStatus = "";
            var category = "";
            function initMsgBoard() {
                applyPublicBoard.query = function() {
                    fetchMessageContent(1);
                };
            }
            function initMoreContent() {
                applyPublicBoard.element = $("#wp_guestbook");
                if (applyPublicBoard.element.hasClass("title_list")) {
                    $(".applyPublic_title", applyPublicBoard.element).click(function() {
                        $(this).parent().children(".applyPublic_detail").slideToggle();
                    });
                }
                $(".read_more", applyPublicBoard.element).click(function() {
                    $(this).toggleClass("active").parent().toggleClass("open_content");
                });
            }
        </script>
    </head>
    <body class="easyui-layout">
        <div region="center" border="false">
            <!---板开始---->
            <div class="wp_guestbook" id="wp_guestbook">
                <div class="wp_guestbook_lists" id="wp_guestbook_list">
                    <ul class="applyPublic_list" id="applyPublic_list">

                    </ul>
                    <p class="applyPublic_count">共有<span id="applyPublic_num"></span>条</p>
                </div>
                <div class="wp_guestbook_paging" id="wp_guestbook_pagination">
                    <p class="wp_pagenavi" id="wp_guestbook_pagination_p">
                    </p>
                </div>
            </div>
            <!---end://结束---->
        </div>
    </body>
</html>
